package com.effectiv.req1.domain;

import java.util.List;

import org.joda.time.DateTime;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.DBRef;

import lombok.Getter;
import lombok.Setter;

public class Flow {
	
	@Getter @Setter
	private boolean alternate;
	
	@DBRef
	@CreatedBy
	@Getter @Setter
	private User createdBy;
	
	@DBRef
	@LastModifiedBy
	@Getter @Setter
	private User lastUpdatedBy;
	
	@CreatedDate
	@Getter @Setter
	private DateTime createdDate;
	
	@LastModifiedDate
	@Getter @Setter
	private DateTime lastUpdatedDate;
	
	@Getter @Setter
	private List<Step> steps;
	
}
